<template>
	<div>
		<!-- 炉次列表 -->
		<pol-table ref="polTableRef" v-bind="tableOpt" height="calc(100vh - 280px)">
			<template #P_IsSys="{row}">
				<span class="text-green2 cursor">确认</span>
			</template>
		</pol-table>
	</div>
</template>

<script setup>
	import { ref } from 'vue';

	const polTableRef = ref(null); //表格ref
	//表格配置
	const columns = ref([
		{ label: '生产时间', key: 'ItemCode', align: 'center', width: '150px' },
		{ label: '二级坯号', key: 'ItemName', align: 'center' },
		{ label: '状态', key: 'ItemValue', align: 'center' },
		{ label: '熔炼号', key: 'IsDefault', align: 'center', width: '140px' },
		{ label: '用户确认', key: 'P_IsSys', align: 'center', width: '100px', slot: true },
	]);

	//表格配置
	const tableOpt = ref({
		columns: columns.value,
		localData: [{
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			},
			{
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}, {
				ItemCode: '22-03-12 08:03',
				ItemName: '1009000',
				ItemValue: '待确认',
				IsDefault: '20186470101'
			}
		]
	});
</script>

<style lang="scss" scoped>

</style>